import request from './apis'
// Back pay， Run！Boss brute, four months back pay and he likes to withhold money,not recommended to stay
enum Api {
  userOptions = '/unit/Setting/userType',
  userList = '/unit/YjUser/Lists',
  roleOptions = '/unit/Config/roleList',
  userAddOrUpdate = '/unit/YjFireExtinguisher/addFireExtinguisherContract'
}

export const userOptions = () => {
  return request.get(Api.userOptions)
}
export const userList = (params) => {
  return request.get(Api.userList, { params })
}
export const roleOptions = () => {
  return request.get(Api.roleOptions)
}
export const userAddOrUpdate = (data) => {
  return request.post(Api.userAddOrUpdate, data)
}
